using Tools.Domain.Specifications.Common;
using Tools.Domain.Specifications.Common.Reflection;
using Tools.Domain.Specifications.SpecificationSet;
using Webshop20.Domain.Security.Authentication.Core;


namespace Webshop20.Domain.Security.Authentication.Core
{
    public class AccountSpecificationSet : SpecificationSetBase<Account>
    {
        public AccountSpecificationSet()
        {

            Add(
                new StringFieldIsNotNullOrEmpty<Account>(x => x.Password, "PASSWORD_EMPTY") &
                new StringFieldIsNotNullOrEmpty<Account>(x=>x.PasswordConfirm, "PASSWORD_CONFIRM_EMPTY") &
                new EqualAs<Account>(x=>x.Password, y=>y.PasswordConfirm)
                
                );

        }

    }
}